/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/* --- Explorer viewlet --- */
.explorer-viewlet {
	height: 100%;
}

.explorer-viewlet .explorer-item,
.explorer-viewlet .open-editor,
.explorer-viewlet .editor-group {
	line-height: 22px;
}

.explorer-viewlet .explorer-item-label,
.explorer-viewlet .open-editor,
.explorer-viewlet .editor-group {
	text-overflow: ellipsis;
	overflow: hidden;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content {
	display: flex;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content > .monaco-action-bar {
	visibility: hidden;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row:hover > .content .monaco-action-bar,
.explorer-viewlet .explorer-open-editors .monaco-tree.focused .monaco-tree-row.focused > .content .monaco-action-bar,
.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content.dirty > .monaco-action-bar {
	visibility: visible;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content .monaco-action-bar .action-label {
	display: block;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content .monaco-action-bar .close-editor-action {
	width: 8px;
	height: 22px;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content .monaco-action-bar .action-close-all-files,
.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content .monaco-action-bar .save-all {
	width: 23px;
	height: 22px;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content > .open-editor {
	flex: 1;
	margin-left: 1px;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content > .editor-group {
	flex: 1;
}

.explorer-viewlet .monaco-count-badge {
	padding: 1px 6px;
	margin-left: 6px;
	border-radius: 0; /* goes better when ellipsis shows up on narrow sidebar */
}

.explorer-viewlet .explorer-empty-view {
	padding: 0 20px 0 20px;
}

.explorer-viewlet .action-close-all-files {
	background: url("closeall.svg") center center no-repeat;
}

.explorer-viewlet .explorer-item .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

.explorer-viewlet .explorer-item .monaco-inputbox.idle {
	border: 1px solid rgba(128, 128, 128, 0.5);
}

.explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
	padding: 1px 2px;
}

.explorer-viewlet-label > .badge-content {
	background-color: #007ACC;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row .editor-group {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: default;
}

/* Disable tree twistie */
.explorer-viewlet .explorer-open-editors > .monaco-tree .monaco-tree-rows > .monaco-tree-row > .content:after,
.explorer-viewlet .explorer-open-editors > .monaco-tree .monaco-tree-rows > .monaco-tree-row > .content:before {
	border: none;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row .open-editor > .description {
	opacity: .7;
	margin-left: .5em;
	font-size: .9em;
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row .open-editor.preview {
	font-style: italic;
	padding-left: 1px; /* we need to push the label a bit to accomodate for the italic style */
}

.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content > .open-editor.preview {
	margin-left: 0px; /* accomodate for 1px padding */
}

/* Theming */
.vs-dark .monaco-workbench .explorer-viewlet .action-close-all-files {
	background: url("closeall_inverse.svg") center center no-repeat;
}

/* High Contrast Theming */
.hc-black .monaco-workbench .explorer-viewlet .explorer-item,
.hc-black .monaco-workbench .explorer-viewlet .open-editor,
.hc-black .monaco-workbench .explorer-viewlet .editor-group {
	line-height: 20px;
}